import { Component } from 'react'
import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import api from '../../services/api'
import './index.scss'


type PageState = {
}

class Page extends Component<{}, PageState> {

  constructor (props) {
    super(props)
    this.state = {
    }
  }

  componentWillMount() {
    this.getList()
  }

  componentWillReceiveProps (nextProps) {
    console.log(this.props, nextProps)
  }

  componentWillUnmount () { }

  componentDidShow () {
   }

  componentDidHide () { }

  getList() {
    api.get('/recommend/songs').then(({ data }) => {
      console.log('songs =》', data)
     
    })
  }


  render () {
    return (
      <View className='daily_recommend_container'>
        每日推荐
      </View>
    )
  }
}

export default Page
